<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>图库</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="css/css/styles.css" />
    <link href="css/css/top_bar.css" rel="stylesheet" type="text/css">
    
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <div class="header">
      <div class="row" id="top_bar">
        <div class="fixed_div">  <!-- fixed_div -->
          <div class="webTitle">
            <a href="/index.html">
              <img src="image/art_logo.png">
            </a>
          </div>
          <div class="search">
            <img src="image/search.png">
            <input type="text" placeholder="搜索画室、标签">
          </div>
          <div class="switch-pages">
            <a href="/index.html"><span class="top_btn">首页</span></a>
            <a href="/Q&A.html"><span class="top_btn">问答</span></a>
            <a href="/gallery.html"><span class="top_btn active">资料</span></a>
          </div>
          <div class="operation-btns">
            <span class="log_reg" data-toggle="modal" data-target="#logModal">登录</span>
            <span class="log_reg" data-toggle="modal" data-target="#regModal">注册</span>
            <div class="user">
              <div class="avatar_userName">
                <a href="/Info.html">
                  <div class="log_avatar">
                    <img src="image/emptyAvatar.jpg"> 
                  </div>  
                  <span class="userName">name</span>
                </a> 
              </div>

              <div class="hidden_first">
                <div class="triangle"></div>  
                <div class="user-list">
                  <div class="updateInfo" data-toggle="modal" data-target="#updateInfoModal">
                    <a href="/updateUserInfo.html">修改资料</a>
                  </div>
                  <div class="changePass" data-toggle="modal" data-target="#changePassModal">修改密码</div>
                  <div class="quit">退出</div>
                </div>
              </div>
            </div>
          </div> 
        </div>
      </div>
    </div>
    <div class="container">
        <div class="row">
            <div class="col-md-8 col-xs-8 col-sm-8 col-lg-8 pic_cat" >
            <!--此处嵌入模板-->
            </div>
            <div class="col-md-4 col-xs-4 col-sm-4 col-lg-4 side_menu">

            </div>
        </div>
    </div>

      <!-- logModal -->
      <div class="modal fade" id="logModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

        <div class="modal-dialog">
          <div class="modal-content">
            <div class="closeModal" data-dismiss="modal">
              <img src="image/CLOSE.png">
            </div>
            <div class="input-line">
              <img src="image/email.png" class="account-img">
              <input type="text" id="logAccount" placeholder="输入账号"/>
            </div>
            <div class="error"></div>
            <div class="input-line">
              <img src="image/lock.png" class="password-img">
              <input type="password" id="logPassword" placeholder="输入密码"/>
            </div>           
            <div class="error"></div>

            <div class="submit-holder">
              <img class="main-submit" src="image/login.png">
            </div>
            <div class="other_login">
              <img src="image/weibo.jpg">
              <span>其它登录：</span>
            </div>
          </div>
        </div>        
      </div>

      <!-- regModal -->
      <div class="modal fade" id="regModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
          <div class="modal-content">
            <div class="closeModal" data-dismiss="modal">
              <img src="image/CLOSE.png">
            </div>

            <div class="input-line">
              <div class="labels">
                <span>手机号码</span>
              </div>
              <input type="text" id="regPhone" class="short" placeholder="输入手机号码"/>
              <img class="getCode" src="image/getCode.png">
            </div>
            <div class="error"></div>
            <div class="input-line">
              <div class="labels">
                <span>验证码</span>
              </div>
              <input type="text" id="regCode" placeholder="输入手机验证码"/>
            </div>
            <div class="error"></div>
            <div class="input-line">
              <div class="labels">
                <span>密码</span>
              </div>
              <input type="password" id="regPassword" placeholder="输入密码"/>
            </div>           
            <div class="error"></div>
            <div class="input-line">
              <div class="labels">
                <span>密码</span>
              </div>
              <input type="password" id="regPassword2" placeholder="再次输入密码"/>
            </div>           
            <div class="error"></div>
            <div class="submit-holder">
              <img class="main-submit" src="image/reg.png">
            </div>
          </div>
        </div>        
      </div>

      <!-- changePassModal -->
      <div class="modal fade" id="changePassModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

        <div class="modal-dialog">
          <div class="modal-content">

            <div class="input-line">
              <input type="password" id="oldPassword" placeholder="输入旧密码"/>
            </div>
            <div class="error"></div>
            <div class="input-line">
              <input type="password" id="changePassword1" placeholder="输入新密码"/>
            </div>           
            <div class="error"></div>
            <div class="input-line">
              <input type="password" id="changePassword2" placeholder="确认新密码"/>
            </div>           
            <div class="error"></div>

            <div class="submit-holder">
              <img class="quit" src="image/cancel.png" data-dismiss="modal">
              <img class="main-submit" src="image/confirm.png">
            </div>
          </div>
        </div>        
      </div>

    <!-- 提问遮罩窗 -->
    <div class="modal fade" id="askModal" tabindex="-1" role="dialog" aria-labelledby="askModalLabel" aria-hidden="true">
      <div class="modal-dialog">
        <div class="modal-content askContainer">
          <div class="askHeader">
            <p class="askTitle">提问</p>
            <div data-dismiss="modal" class="closeAskModalBtn"></div>
            
          </div>
          <div class="askBody">
            <div class="askInput">
              <h5 class="askLabel">输入标题</h5>
              <input type="text"  id="askTitleInput" placeholder="输入标题">
            </div>
            <div class="askInput">
              <h5 class="askLabel">问题说明</h5>
              <div class="uploadMediaBtn" id="uploadImg"></div>
              <div class="uploadMediaBtn" id="uploadVideo"></div>
              <p class="selectedFileName"></p>
              <textarea id="askDescription" placeholder="输入问题的描述，可以插入图片或视频"></textarea>
              <form enctype="multipart/form-data" action="msq/api/image" method="POST" target="hidden_frame">
                <input type="file" name="image" id="fileInput"/>
                <!--<input type="text" name="userId" />-->
                <input type="submit" id="uploadBtn"/>
              <iframe name='hidden_frame' id="hidden_frame" style='display:none'></iframe> 
              </form> 
            </div>
            <div class="askTagGroup">
              <h5 class="askLabel">选择标签</h5>
              <div class="askTag selected">素描</div>
              <div class="askTag">色彩</div>
            </div>
            <div class="checkbox askAnonymity">
              <label>
                <input type="checkbox"> 匿名
              </label>
            </div>
            <div class="actionBtns">
              <button class="btn btn-primary btn-md" data-dismiss="modal" id="submitBtn">发布</button>
              <button class="btn btn-default btn-md" data-dismiss="modal" id="cancelBtn">取消</button>       
            </div>
          </div>
        </div>
      </div>
    </div>


    <!--template-->
    <script id="cat" type="text/x-handlebars-template">
    {{#each this}}
      {{#firstInRow @index}}
        {{#if @index}}
          </div>
        {{/if}}
        <div class="row pic_cat_row">
      {{else}}
      {{/firstInRow}}
      <div class="col-md-6 col-xs-6 col-sm-6 col-lg-6 row_cat_col">
          <a href={{this.href}} class="catogeryLink">
            <div class="catPicWrapper">
              <img src={{this.icon}} alt="catogeryPicture">
            </div>
            <h5>{{this.name}}</h5>
          </a>
      </div>
    {{/each}}
    </script>

    <!--右边个人信息栏-->
    <script id="sideMenu" type="text/x-handlebars-template">

        <div class="banner">
            <img src="image/long.jpg" alt="banner">
        </div>
        <div class="side_menu_btn_container">
          <ul class="side_menu_btnset" id="side_menu_btnset1">
            <li>
              <a href="info.html">
                <div class="side_menu_btnIcon">
                  <img src="image/mywork.png" alt="mywork.png">
                </div>
                我的作品
                <div class="side_menu_btnTag">{{workNum}}</div>
              </a>
              
            </li>
            <li>
              <a href="info.html">
                <div class="side_menu_btnIcon">
                  <img src="image/myquestion.png" alt="myquestion.png">
                </div>
                我的提问
                <div class="side_menu_btnTag">{{askNum}}</div>
              </a>
            </li>
            <li>
              <a href="info.html">
                <div class="side_menu_btnIcon">
                  <img src="image/mycomment.png" alt="mycomment.png">
                </div>
                我的评论
                <div class="side_menu_btnTag">{{commentNum}}</div>
              </a>
            </li>
            <li>
              <a href="info.html">
                <div class="side_menu_btnIcon">
                  <img src="image/mysubscribe.png" alt="mysubscribe.png">
                </div>
                我的订阅
                <div class="side_menu_btnTag">{{subscriptionNum}}</div>
              </a>
            </li>
          </ul>
          <ul class="side_menu_btnset" id="side_menu_btnset2">
            <li>
              <a href="info.html">
                <div class="side_menu_btnIcon">
                  <img src="image/fans.png" alt="fans.png">
                </div>
                关注
                <div class="side_menu_btnTag">{{followNum}}</div>
              </a>
            </li>
            <li>
              <a href="info.html">
                <div class="side_menu_btnIcon">
                  <img src="image/fans.png" alt="fans.png">
                </div>
                粉丝
                <div class="side_menu_btnTag">{{fanNum}}</div>
              </a>
            </li>
            <li>
              <a href="info.html">
                <div class="side_menu_btnIcon">
                  <img src="image/mark.png" alt="mark.png">
                </div>
                收藏
                <div class="side_menu_btnTag">{{collectionNum}}</div>
              </a>
            </li>
          </ul>
        </div>
    </script>
    <script src="js/thirdparty/require.js" data-main="js/gallery"></script>
    <!--<script src="js/thirdparty/jquery-1.11.3.min.js"></script>
    <script src="js/thirdparty/bootstrap.js"></script>
    <script src="js/thirdparty/handlebars-v3.0.3.js"></script>
    <script src="js/thirdparty/less-1.7.0.min.js"></script>
    <script src="js/util.js"></script>
    <script src="js/appConfig.js"></script>
    <script src="js/gallery.js"></script>-->

      <div class="footer">
        <div class="footerContent">
          <ul class="footerList">
            <li><a href="#">关于我们</a></li>
            <li><a href="#">联系我们</a></li>
            <li><a href="#">广告业务</a></li>
          </ul>
          <p class="icp">京备123号</p>
          <h2>美术帮</h2>
        </div>
      </div>
    
  </body>
</html>